package com.hl.icd.bean;

import lombok.Data;
import tk.mybatis.mapper.annotation.NameStyle;
import tk.mybatis.mapper.code.Style;

import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Transient;

@Data
@Table(name = "user")
@NameStyle(value=Style.normal)
public class User {
    @Id
    private String id;
    private String nickname;
    private String username;
    private String password;
    private String telephone;
    private String email;
    private String role;
    private String lockState;
    private String createTime;
    private String createBy;
    private String editTime;
    private String editBy;

    //数据库中没有对应项，只是为了方便额外加了一些参数
    @Transient
    private String token;
    @Transient
    private String message;

}
